package com.open.capacity.notice.dmo;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.Digits;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class AbstractSendEntity implements Serializable {

	private static final long serialVersionUID = 1576880835326437413L;

	@TableId(type = IdType.ASSIGN_ID)
	private String id;

	@ApiModelProperty(value = "创建人")
	private String createUser;

	/**
	 * 删除标识：1-删除，0-正常
	 */
	@TableLogic
	@ApiModelProperty(value = "删除标记,1:已删除,0:正常")
	@Digits(integer = 1, fraction = 0, message = "删除标识只能为数字")
	private Integer delFlag;
	
	@ApiModelProperty(value = "创建者id")
	private String createUserId;

	@ApiModelProperty(value = "创建时间")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	@ApiModelProperty(value = "修改人")
	private String updateUser;

	@ApiModelProperty(value = "更新者Id")
	private String updateUserId;

	@ApiModelProperty(value = "修改时间")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

}
